package com.zhuanzhuan.dao;


import com.zhuanzhuan.entity.Goods;
import com.zhuanzhuan.vo.GoodsDetail;

import java.util.List;

public interface GoodsDao {
    public List<GoodsDetail> listOnSellGoods(int page, int type);
    public List<GoodsDetail> listOnSellGoodsByUserID(int userId, int page);
    public int getOnSellGoodsCountByType(int type);
    public int getOnSellGoodsCountByUserID(int userID);
    public int addNewGoods(Goods goods);
    public int updateGoodsOnSellState(int GoodsID, boolean isOnSell);
}
